package DiYiZhou2;

import java.util.Scanner;

public class LianXi4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入a的值");
        int a = scanner.nextInt();
        System.out.println("请输入b的值");
        int b = scanner.nextInt();
        System.out.println("请输入c的值");
        int c = scanner.nextInt();
        if ((a > b) && (b > c)) {
            System.out.println("最小值为：" + c);
        }
        if ((b > c )&& (c > a)) {
            System.out.println("最小值为： " + a);
        }
        if ((c > a) &&(a > b)) {
            System.out.println("最小值为：" + b);
        }
    }
}
